package xyz.scootaloo.oj.iq

import org.junit.Test

/**
 * @author flutterdash@qq.com
 * @since 2021/4/16 15:30
 */
class M0109 {

    private fun isFlipedString(s1: String, s2: String): Boolean {
        if (s1.length != s2.length)
            return false
        if (s1 == s2)
            return true
        return (s2 + s2).contains(s1)
    }

    @Test
    fun test0() {
        println(isFlipedString("waterbottle", "erbottlewat"))
        println(isFlipedString("aa", "aba"))
    }

}
